package demo.springcloud.test.service;

import demo.springcloud.test.dto.People;
import demo.springcloud.test.dto.Student;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel = "spring")
public interface StudentMapper {
    @Mappings({
            @Mapping(source = "name", target = "myName"),
    })

    Student getPeopleToStudent(People people);
}
